package com.cyy.demo.dao;

import com.cyy.demo.entity.User;

import java.util.List;

public interface UserMapper {
    /**
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    User insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectAll();

    User selectByUsername(String username);

    void insertBatch(List<User> list);
}